package com.inspur.ourhis_afterend.Service.Impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.inspur.ourhis_afterend.Dao.DemoDao;
import com.inspur.ourhis_afterend.Entity.Demo;
import com.inspur.ourhis_afterend.Service.DemoService;
import com.inspur.ourhis_afterend.mapper.UserMapper;
import com.inspur.ourhis_afterend.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DemoServiceImpl implements DemoService {

    @Autowired
    DemoDao demoDao;
    @Resource
    UserMapper userMapper;

    @Override
    public List<Demo> findAll() throws Exception {
        return demoDao.selectList(null);
    }


}
